<?php
$thread = $this->thread;
$user = $this->user;
$this->title = $thread["Title"];
$this->headTitle($this->title);
?>	

		
		<!-- start content -->
		<div id="viewthread_inside" class="content">
			<div id="InnerMenu">
			<?php if ($this->flag_show == 0){ ?>
				<p>Invalid Search!</p>
			<?php }else {?>
				<p><b>Created: </b><?php echo $thread["DateCreated"];?></p>
				<p><b>Written by:  </b><?php echo $user["Username"];?></p><br/>
				<p> <?php echo $thread["Text"];?> </p>
			<?php }?>
				
			</div>
			<br />
			
			<a href="<?php echo $this->url(array('controller'=>'Threads','action'=>'index'));?>">
						Back to threads</a>

		</div>
		<!-- end content -->
		
